package com.pig4cloud.pig.demo;

import com.pig4cloud.pig.demo.Mapper.CarouselMapper;
import com.pig4cloud.pig.demo.Service.CarouselService;
import com.pig4cloud.pig.demo.feign.Entity.Carousel;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test1 {

    @Autowired
    private CarouselMapper carouselMapper;

    @Test
    public void testMapper(){
        Carousel carousel=new Carousel();
//        carousel.setImg("https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1950884922,75018741&fm=26&gp=0.jpg");
//        carousel.setImg("https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00723-2236.jpg");
//        carousel.setImg("https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2724053067,272554101&fm=26&gp=0.jpg");
//        carousel.setImg("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2214279671,1299042480&fm=26&gp=0.jpg");
//        carousel.setImg("https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3063447858,1557676199&fm=26&gp=0.jpg");
//        carousel.setImg("https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2837425283,4194689703&fm=26&gp=0.jpg");
//        carousel.setImg("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3401930156,2265312679&fm=26&gp=0.jpg");
//        carousel.setImg("https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1018763199,2190445036&fm=26&gp=0.jpg");
        carousel.setImg("https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3584899235,2312422629&fm=26&gp=0.jpg");
//        carousel.setImg("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2679194624,1325681141&fm=26&gp=0.jpg");
//        carousel.setImg("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1697850329,1416483110&fm=26&gp=0.jpg");
//        carousel.setImg("https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2005393652,4064638024&fm=26&gp=0.jpg");

        carouselMapper.insert(carousel);

    }
}
